<?php
/**
 * Created by PhpStorm.
 * User: wxy
 * Date: 2017/8/30
 * Time: 15:31
 */

namespace island\controllers;


use frontend\modules\common\models\BaseHelper;
use Yii;
use yii\web\Controller;


class BaseController extends Controller
{
    protected $_appKey = 'qazwsxedc';

    /**
     * @throws \yii\base\ExitException
     */
    public function init()
    {

//        $key = isset($_SERVER['HTTP_APPKEY']) ? $_SERVER['HTTP_APPKEY'] : '';
//
//        if ($this->_appKey != Yii::$app->request->get('appkey', '') && $this->_appKey != $key) {
//            BaseHelper::Error('appkey error');
//        }

    }
}